package com.sen.design.principle.singleresponsibility;

/**
 * 单一职责原则：不要存在多余一个导致类变更的原因,每个类的职责单一
 */
public class Test {
    public static void main(String[] args) {
        Bird bird = new FlyBird("大雁");
        bird.mainMoveMode();

        Bird bird1 = new WalkBird("企鹅");
        bird1.mainMoveMode();


    }
}
